#include <string>
#include <iostream>
#include "cn2pinyin.h"

int main(int argc, char* argv[]) {
    if (argc != 2) {
        std::cerr << "example: ./cn2pinyin \"这是一句中文\"" << std::endl;
        return 1;
    }

    const std::string input_str = argv[1];

    std::string pinyin = utils::Cn2Pinyin(input_str);
    std::string jinpin = utils::Cn2Jianpin(input_str);
    std::string initial = utils::Cn2Initial(input_str);

    std::cout << "pinyin: " << pinyin << std::endl;
    std::cout << "jinpin: " << jinpin << std::endl;
    std::cout << "initial: " << initial << std::endl;

    return 0;
}